<?php
namespace Tools\Model;

use Common\Model\BaseModel;

class ToolsGuestbookModel extends BaseModel{
	//自动验证
	protected $_validate = array(
		array('username', 'require', '姓名不能为空！', 1, 'regex', BaseModel:: MODEL_BOTH ),
		array('mobile', 'require', '手机不能为空！', 1, 'regex', BaseModel:: MODEL_BOTH ),
		array('msg', 'require', '留言不能为空！', 1, 'regex', BaseModel:: MODEL_BOTH ),
	);

	protected $_auto = array (

	);


	protected function _before_write(&$data) {
		parent::_before_write($data);
	}
}